﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" ValidateRequest="false" AutoEventWireup="true" CodeBehind="EditComment.aspx.cs" Inherits="ESAM_Assignment_3.EditComment" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style7
        {
            width: 143px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Panel ID="pnlContent" runat="server" BackColor="#00CC99" BorderColor="Silver"
        BorderStyle="Solid" BorderWidth="1px">
        <b>Edit Comment:</b><asp:Label ID="lblCommentID" runat="server" Visible="False"></asp:Label>
        <p>
            Please note the comment&#39;s date will be updated to today&#39;s date if you update
            this comment.</p>
        <p>
            <table id="tblComments" width="1000">
                <tr>
                    <td class="style7">
                        Original Date Posted:&nbsp;
                    </td>
                    <td>
                        <asp:Label ID="lblDatePosted" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="style7">
                        Subject:
                    </td>
                    <td>
                        <asp:TextBox ID="tbxSubject" runat="server" Width="200px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tbxSubject"
                            ErrorMessage="Required Field" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style7">
                        Comments:
                    </td>
                    <td>
                        <asp:TextBox ID="tbxComments" runat="server" Rows="3" TextMode="MultiLine"
                            Width="500px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbxComments"
                            Display="Dynamic" ErrorMessage="Required Field" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style7">
                        Posted By:
                    </td>
                    <td>
                        <asp:Label ID="lblFullname" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="style7">
                        &nbsp;
                    </td>
                    <td>
                        <asp:Button ID="btnUpdateComment" runat="server" Height="26px" OnClick="btnUpdateComment_Click"
                            Text="Update Comment" Width="153px" />
                        &nbsp;<asp:Label ID="lblStatus" runat="server"></asp:Label>
                    </td>
                </tr>
            </table>
        </p>
    </asp:Panel>
    <br />
</asp:Content>
